package com.example.springbootdemo09.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Teacher {
    @Excel(name = "编号", orderNum = "1", width = 25)
    private Long id;
    @Excel(name = "姓名", orderNum = "1", width = 25)
    private String name;
    @Excel(name = "年龄", orderNum = "1", width = 25)
    private Integer age;
    @Excel(name = "性别", orderNum = "1", width = 25 ,replace = {"男_1","女_0"})
    private String sex;
    @Excel(name = "职位", orderNum = "1", width = 25)
    private String  position;
    @Excel(name = "学科", orderNum = "1", width = 25)
    private  String    subject;

}
